package model;

/**
 * @author Jagadeesh
 */
public class UserBean {

    private String Nama;
    private String Alamat;
    private String NoTelp;
    private String JenisKelamin;
    private String Email;
    private String Username;
    private String Password;
    //for validation error messages
    private String NamaError;
    private String AlamatError;
    private String NoTelpError;
    private String JenisKelaminError;
    private String EmailError;
    private String UsernameError;
    private String PasswordError;
    private boolean isValid;
    //this is for action means edit or submit or delete or update
    private String action;
    private String EditUser;
    //construtor.it is invoked when we run jsp page.
    //so first time no values will display in jsp page

    public UserBean() {
        Nama = "";
        Alamat = "";
        NoTelp = "";
        JenisKelamin = "";
        Email = "";
        Username = "";
        Password = "";

        NamaError = "";
        AlamatError = "";
        NoTelpError = "";
        JenisKelaminError = "";
        EmailError = "";
        UsernameError = "";
        PasswordError = "";


        action = "action";
        EditUser = "EditUser";
    }

    public boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(boolean isValid) {
        this.isValid = isValid;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    /**
     * @return the Nama
     */
    public String getNama() {
        return Nama;
    }

    /**
     * @param Nama the Nama to set
     */
    public void setNama(String Nama) {
        this.Nama = Nama;
    }

    /**
     * @return the Alamat
     */
    public String getAlamat() {
        return Alamat;
    }

    /**
     * @param Alamat the Alamat to set
     */
    public void setAlamat(String Alamat) {
        this.Alamat = Alamat;
    }

    /**
     * @return the NoTelp
     */
    public String getNoTelp() {
        return NoTelp;
    }

    /**
     * @param NoTelp the NoTelp to set
     */
    public void setNoTelp(String NoTelp) {
        this.NoTelp = NoTelp;
    }

    /**
     * @return the JenisKelamin
     */
    public String getJenisKelamin() {
        return JenisKelamin;
    }

    /**
     * @param JenisKelamin the JenisKelamin to set
     */
    public void setJenisKelamin(String JenisKelamin) {
        this.JenisKelamin = JenisKelamin;
    }

    /**
     * @return the Email
     */
    public String getEmail() {
        return Email;
    }

    /**
     * @param Email the Email to set
     */
    public void setEmail(String Email) {
        this.Email = Email;
    }

    /**
     * @return the Username
     */
    public String getUsername() {
        return Username;
    }

    /**
     * @param Username the Username to set
     */
    public void setUsername(String Username) {
        this.Username = Username;
    }

    /**
     * @return the Password
     */
    public String getPassword() {
        return Password;
    }

    /**
     * @param Password the Password to set
     */
    public void setPassword(String Password) {
        this.Password = Password;
    }

    /**
     * @return the NamaError
     */
    public String getNamaError() {
        return NamaError;
    }

    /**
     * @param NamaError the NamaError to set
     */
    public void setNamaError(String NamaError) {
        this.NamaError = NamaError;
    }

    /**
     * @return the AlamatError
     */
    public String getAlamatError() {
        return AlamatError;
    }

    /**
     * @param AlamatError the AlamatError to set
     */
    public void setAlamatError(String AlamatError) {
        this.AlamatError = AlamatError;
    }

    /**
     * @return the NoTelpError
     */
    public String getNoTelpError() {
        return NoTelpError;
    }

    /**
     * @param NoTelpError the NoTelpError to set
     */
    public void setNoTelpError(String NoTelpError) {
        this.NoTelpError = NoTelpError;
    }

    /**
     * @return the JenisKelaminError
     */
    public String getJenisKelaminError() {
        return JenisKelaminError;
    }

    /**
     * @param JenisKelaminError the JenisKelaminError to set
     */
    public void setJenisKelaminError(String JenisKelaminError) {
        this.JenisKelaminError = JenisKelaminError;
    }

    /**
     * @return the EmailError
     */
    public String getEmailError() {
        return EmailError;
    }

    /**
     * @param EmailError the EmailError to set
     */
    public void setEmailError(String EmailError) {
        this.EmailError = EmailError;
    }

    /**
     * @return the UsernameError
     */
    public String getUsernameError() {
        return UsernameError;
    }

    /**
     * @param UsernameError the UsernameError to set
     */
    public void setUsernameError(String UsernameError) {
        this.UsernameError = UsernameError;
    }

    /**
     * @return the PasswordError
     */
    public String getPasswordError() {
        return PasswordError;
    }

    /**
     * @param PasswordError the PasswordError to set
     */
    public void setPasswordError(String PasswordError) {
        this.PasswordError = PasswordError;
    }

    /**
     * @return the EditUser
     */
    public String getEditUser() {
        return EditUser;
    }

    /**
     * @param EditUser the EditUser to set
     */
    public void setEditUser(String EditUser) {
        this.EditUser = EditUser;
    }
}
